package com.oig.sys.log.feign.factory;

import com.oig.sys.log.feign.SysLogService;
import com.oig.sys.log.feign.fallback.SysLogServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;


@Component
public class SysLogFallBackFactory implements FallbackFactory<SysLogService> {


    @Override
    public SysLogService create(Throwable cause) {
        SysLogServiceFallBackImpl sysLogServiceFallback = new SysLogServiceFallBackImpl();
        sysLogServiceFallback.setCause(cause);
        return sysLogServiceFallback;
    }


}
